package com.vivz.baby.domain;

import java.util.ArrayList;
import java.util.List;

import android.os.Parcel;
import android.os.Parcelable;

import com.vivz.baby.persistence.model.Log;

public class ParcelableLogsList implements Parcelable {

	private final List<Log> logs = new ArrayList<Log>();

	public ParcelableLogsList(List<Log> logs) {
		this.logs.clear();
		if (logs != null) {
			this.logs.addAll(logs);
		}
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeList(logs);
	}
	
	public List<Log> getLogs() {
		return logs;
	}

}
